import axios from 'axios'
export default {
  // 日志列表
  journalList () {
    return axios.get('http://qianjia.space:5000/logs')
  },
  // 新增日志
  addJournal (model) {
    return axios.post('http://qianjia.space:5000/logs', model)
  },
  // 修改接口
  modifyJournal (id, model) {
    return axios.put('http://qianjia.space:5000/logs/' + id, model)
  },
  // 删除接口
  deleteJournal (id) {
    return axios.delete('http://qianjia.space:5000/logs/' + id)
  }
}
